export const getMenu = (req, res) => {
  res.json([
    /*
    {
      name: '控制台',
      icon: 'dashboard',
      path: 'Dashboard',
      children: [
        {
          name: '分析页',
          path: 'Analysis',
          route: '/Dashboard/Analysis',
          icon: 'dashboard'
        }
      ],
    },
    */
    {
      name: '基础信息',
      icon: 'database',
      path: 'base-info',
      children: [
        {
          name: '用户管理',
          path: 'user',
          route: '/base-info/tmsUser',
          models: 'tmsUser',
          icon: 'user-add',
        },
        {
          name: '客户管理',
          path: 'customer',
          route: '/base-info/customer',
          models: 'customer',
          icon: 'usergroup-add',
        },
        {
          name: '司机管理',
          path: 'driver',
          route: '/base-info/driver',
          models: 'driver',
          icon: 'user-add',
        },
      ],
    },
    {
      name: '客服中心',
      icon: 'phone',
      path: 'service',
      children: [
        {
          name: '建立订单',
          path: 'entry-order',
          route: '/service/entryOrder',
          models: 'entryOrder',
          icon: 'edit',
        },
        {
          name: '追踪订单',
          path: 'track-order',
          route: '/service/trackOrder',
          models: 'trackOrder',
          icon: 'edit',
        },
        {
          name: '实际收入',
          path: 'income-order',
          route: '/service/incomeOrder',
          models: 'incomeOrder',
          icon: 'edit',
        },
      ],
    },
    {
      name: '运调中心',
      icon: 'car',
      path: 'dispatch',
      children: [
        {
          name: '拆分订单',
          path: 'split-order',
          route: '/dispatch/splitOrder',
          models: 'splitOrder',
          icon: 'fullscreen',
        },
        {
          name: '提交费用',
          path: 'dispatch-order',
          route: '/dispatch/dispatchOrder',
          models: 'dispatchOrder',
          icon: 'money-collect',
        },
      ],
    },
    {
      name: '运营中心',
      icon: 'compass',
      path: 'operate',
      children: [
        {
          name: '审核费用',
          path: 'audit-cost',
          route: '/service/auditCost',
          models: 'auditCost',
          icon: 'security-scan',
        },
        {
          name: '审核支付',
          path: 'audit-pay',
          route: '/operate/auditPay',
          models: 'auditCost',
          icon: 'security-scan',
        },
        {
          name: '审核收入',
          path: 'audit-order',
          // route: '/operate/auditOrder',
          route: '/operate/auditIncome',
          models: 'incomeOrder',
          icon: 'security-scan',
        },
      ],
    },
    {
      name: '财务中心',
      icon: 'money-collect',
      path: 'finance',
      children: [
        {
          name: '支付费用',
          path: 'pay-cost',
          route: '/finance/payCost',
          models: 'auditCost',
          icon: 'money-collect',
        },
        {
          name: '开票',
          path: 'ticket-pay',
          route: '/finance/ticketPay',
          models: 'auditOrder',
          icon: 'money-collect',
        },
        {
          name: '收款',
          path: 'gathering',
          route: '/finance/gathering',
          models: 'finance',
          icon: 'money-collect',
        },
      ],
    },
    {
      name: '报表中心',
      icon: 'area-chart',
      path: 'report',
      children: [
        {
          name: '订单日报',
          path: 'order-report',
          route: '/report/OrderReport',
          models: 'orderReport',
          icon: 'area-chart',
        },
      ],
    },
    /* {
      name: '客户公司管理',
      icon: 'solution',
      path: 'Company',
      children: [
        {
          name: '公司类型',
          path: 'Type',
          models: 'companyType',
          route: '/Company/Type'
        },
        {
          name: '公司列表',
          path: 'List',
          models: "company",
          route: '/Company/List'
        }

      ]

    },
    {
      name: '用户管理',
      icon: 'user',
      path: 'User',
      children: [
        {
          name: '用户列表',
          path: 'List',
          models: 'userList',
          route: '/User/List'
        },
      ]
    },
    {
      name: '角色管理',
      icon: 'key',
      path: 'Role',
      children: [
        {
          name: '角色列表',
          path: 'List',
          models: 'role',
          route: '/Role/List'
        },
      ]
    },
    {
      name: '资源管理',
      icon: 'appstore',
      path: 'Resource',
      children: [
        {
          name: '资源类型',
          path: 'Type',
          models: 'resourceType',
          route: '/Resource/Type'
        },
        {
          name: '表格行内元素',
          path: 'InlineElem',
          models: 'inlineElem',
          route: '/Resource/InlineElem'
        },
        {
          name: '表格按钮组',
          path: 'BtnGroup',
          models: 'btnGroup',
          route: '/Resource/BtnGroup'
        },
        {
          name: '资源列表',
          path: 'List',
          models: 'resource',
          route: '/Resource/List'
        }
      ]
    },*/
    {
      name: 'UI测试',
      icon: 'solution',
      path: 'Test',
      children: [
        {
          name: '表单布局',
          path: 'FormLayout',
          route: '/Test/FormLayout',
        },
        {
          name: '树形表格',
          path: 'TreeTable',
          route: '/Test/TreeTable',
        },
        {
          name: '选择树',
          path: 'Tree',
          route: '/Test/Tree',
        },
        {
          name: '树形穿梭框',
          path: 'TreeTransfer',
          route: '/Test/TreeTransfer',
        },
        {
          name: '上传组件',
          path: 'FileUpload',
          route: '/Test/FileUpload',
        },
        {
          name: 'JAVA测试题',
          path: 'Question',
          route: '/Test/Question',
        },
        {
          name: 'ECharts测试',
          path: 'ECharts',
          route: '/Test/Echarts',
        },
        {
          name: '嵌套表格',
          path: 'NestTable',
          route: '/Test/NestTable',
        },
        {
          name: '可编辑表格',
          path: 'EditTable',
          route: '/Test/EditableTable',
        },
        {
          name: '联动表格',
          path: 'LinkedTable',
          route: '/Test/LinkedTable',
        },
      ],
    },
  ]);
};

export default {
  getMenu,
};
